package ln.javatest.day07.demo12;

public class DemoMain {
    public static void main(String[] args) {
        //抽象类不可以直接创建对象
        // Animal animal = new Animal();
       // Dog dog = new Dog(); //错误，这也是抽象类
        Dogss dogss = new Dogss();
        dogss.eat();       //狗吃骨头。
        dogss.sleep();     //哧哧嗤
        System.out.println("==================");
        Dogs dogs = new Dogs();
        dogs.eat();       //狗吃骨头。
        dogs.sleep();     //呼呼呼
        System.out.println("==================");
    }
}
